n=int(input())
m=int(input())
while n<=m<=0:
    n=int(input())
    m=int(input())
from math import factorial
a=factorial(n)
b=factorial(m)
c=factorial(n-m)
kinds=a//(b*c)
print(kinds)
